﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using VM.Entity.EntityDto.Topic;

namespace VM.Entity.EntityDto.TitleDto
{
    public class titleTopicDto
    {
        #region Model
        private int? _id;
        private int _parentid;
        private int _topicid;
        /// <summary>
        /// 内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        public int? id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 父内码
        /// </summary>
        public int parentId
        {
            set { _parentid = value; }
            get { return _parentid; }
        }
        /// <summary>
        /// 话题内码
        /// </summary>
        public int topicId
        {
            set { _topicid = value; }
            get { return _topicid; }
        }



        [Navigate(NavigateType.OneToOne, nameof(topicId))]
        public topicDto? topicInfo { get; set; }



        #endregion Model
    }
}
